package lab01;

public class Text10 {
    public static void main(String[] args) {
        char a = 'A';
        int i = 1;
        //菱形是对称的，先打印前四行，
       for( i= 1 ;i<=4;i ++){
            //打印空格
        for (int space = 4;space > i-1;space--){
            System.out.print(" ");
        }
        //打印空格和字母
        for(int line= 1;line <= i;line ++){
            System.out.print(a);
            System.out.print(" ");
            a = (char)(a+1);
        }
        System.out.println();
        }
        //打印后四行
        for(int j = 4;j>=1;j--){
            //打印空格
            for(int space = j-4;space <= 0;space++){
                System.out.print(" ");
            }
            //打印后四行
            for(int line = 1;line <= j;line++){
                System.out.print((char)(a+1));
                System.out.print(" ");
                a = (char)(a+1);
            }
            System.out.println();
        }
    }
}
